home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / cxref-1.001 / cxref-1~ / cxref / cpp / README < prev    next >
Encoding:
Text File  |  1995-11-15  |  2.1 KB  |  74 lines

  1.                               cxref-cpp
  2.                               =========
  3.  
  4.  
  5. This is a copy of the gcc-2.6.3 pre-processor with some modifications
  6. to make cxref work better.
  7.  
  8. The files are modified in the following way.
  9.  
  10. cccp.c    - Hacked about a bit.
  11. cexp.y    - As original.
  12. version.c - As original.
  13. pcp.h     - As original.
  14. config.h  - As original.
  15. tm.h      - As original or if this fails the minimum required is:
  16.                 CPP_PREDEFINES
  17.                 BITS_PER_*
  18.                 TARGET_*
  19.                 *_TYPE
  20.  
  21. config.h & tm.h
  22. ---------------
  23.  
  24. config.h and tm.h need to be taken from the appropriate place in the
  25. gcc-2.6.3 source tree depending on the system architecture that you
  26. are using. Use the configure script from gcc-2.6.3 if you are not
  27. sure.
  28.  
  29. The only config.h and tm.h supplied are for a 386/486 running Linux
  30. and a sparc with SUNOS 4.1.x and Solaris 2.x.
  31.  
  32.   Machine                       tm.h                  config.h
  33.  
  34. i386 Linux              config/i386/linux.h     config/i386/xm-i386.h
  35.  
  36. Sparc Solaris 2.3       config/sparc/sol2.h     config/sparc/xm-sysv4.h
  37. Sparc SUNOS 4.1         config/sparc/sparc.h    config/sparc/xm-sparc.h
  38.  
  39. Make a logical link to these files from config.h and tm.h.
  40.  
  41. Makefile
  42. --------
  43.  
  44. Makefile needs to have the include directories hacked, use
  45. `gcc -E -v - </dev/null' to see the list of paths,
  46.  
  47. Those marked `->' below are needed.
  48.  
  49.      | Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
  50.      | gcc version 2.5.8
  51.      |  /usr/lib/gcc-lib/i486-linux/2.5.8/cpp -lang-c -v -undef ...
  52.      | GNU CPP version 2.5.8 (80386, BSD syntax)
  53.      | #include "..." search starts here:
  54.      | #include <...> search starts here:
  55. 1 -> |  /usr/local/include
  56. 2 -> |  /usr/i486-linux/include
  57. 3 -> |  /usr/lib/gcc-lib/i486-linux/2.5.8/include
  58.      |  /usr/include
  59.      | End of search list.
  60.  
  61. Add these to the makefile as described below:
  62.  
  63. 1) INCLUDE_DIR1
  64. 2) INCLUDE_DIR2
  65. 3) INCLUDE_DIR3
  66.  
  67. Testing
  68. -------
  69.  
  70. When cxref-cpp has been made use 'gcc -E -dM - < /dev/null' and
  71. 'cxref-cpp -dM - < /dev/null' and check that the default #defines are
  72. the same in the two programs. The #define CPP_PREDEFINES in tm.h is
  73. used to set these
  74.